package com.tablefood.domain;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * ShopCategory entity. @author MyEclipse Persistence Tools
 */

public class ShopCategory implements java.io.Serializable {

	// Fields

	private Long cateid;
	private String title;
	private Long parentid;
	private String state;
	private Timestamp createTime;
	private Timestamp updateTime;
	private Set shopProducts = new HashSet(0);

	// Constructors

	/** default constructor */
	public ShopCategory() {
		title = "无";
		parentid = (long) 0;
		state = "0";
		createTime = new Timestamp(System.currentTimeMillis()); 
		updateTime = new Timestamp(System.currentTimeMillis()); 
	}

	/** minimal constructor */
	public ShopCategory(String title, Long parentid, String state,
			Timestamp createTime, Timestamp updateTime) {
		this.title = title;
		this.parentid = parentid;
		this.state = state;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	/** full constructor */
	public ShopCategory(String title, Long parentid, String state,
			Timestamp createTime, Timestamp updateTime, Set shopProducts) {
		this.title = title;
		this.parentid = parentid;
		this.state = state;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.shopProducts = shopProducts;
	}

	// Property accessors

	public Long getCateid() {
		return this.cateid;
	}

	public void setCateid(Long cateid) {
		this.cateid = cateid;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Long getParentid() {
		return this.parentid;
	}

	public void setParentid(Long parentid) {
		this.parentid = parentid;
	}

	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Timestamp getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	public Set getShopProducts() {
		return this.shopProducts;
	}

	public void setShopProducts(Set shopProducts) {
		this.shopProducts = shopProducts;
	}

}